<div class="row-fluid">
  <div class="portlet box blue tabbable">

    <div class="portlet-title">

      <div class="caption"> <i class="icon-reorder"></i>
        网站设置
      </div>

    </div>
    <div class="portlet-body">
      <div class="tabbable portlet-tabs">
        <ul class="nav nav-tabs">
          <li>
            <a href="#profile" data-toggle="tab">页面信息</a>
          </li>
          <li class="active">
            <a href="#base" data-toggle="tab">基础信息</a>
          </li>
        </ul>
        <div id="pane" class='tab-content'>
               
                          <?php 
            $success =yii::app()->
              user->getFlash('success');
            if (isset($success)) { ?>
              <div class="alert alert-success">
                <button type="button" class="close" data-dismiss="alert"></button>
                <?php echo $success ?></div>
              <?php } ?>
          <div id="base" class='tab-pane fade active in'>
               <?php $form=$this->
                  beginWidget('CActiveForm', 
              array("id"=>'userform',
              'enableClientValidation'=>true,
              'clientOptions'=>array(
                'validateOnSubmit'=>true,
              ),
              "htmlOptions"=>array(
                  "class"=>"form-horizontal",
                  "enctype"=>"multipart/form-data")
            )); ?>
              <div class="control-group">
                <label class="control-label">网站名称:</label>
                <div class="controls">
                  <input type="text" name="name" value="<?php echo $name ?>"></div>
              </div>
              <div class="control-group">
                <label class="control-label">logo:</label>
                <div class="controls">
                  <input type="file" name="logo"></div>
              </div>
              <div class="control-group">
                <label class="control-label">备案号:</label>
                <div class="controls">
                  <input type="text" name="ICP" value="<?php echo $ICP ?>"></div>
              </div>
              <div class="control-group">
                <label class="control-label">开启或关闭网站:</label>
                <div class="controls">
                  <?php echo CHtml::dropDownList("IsOpen",'true',array('true'=>'开启','false'=>'关闭')) ?></div>
              </div>
               <div class="form-actions">
            <button type="submit" class="btn blue"> <i class="icon-ok"></i>
              确定
            </button>
          </div>
              <?php $this->endWidget(); ?>
          </div>
          <div id="profile" class='tab-pane fade'>
               <?php $form=$this->
                  beginWidget('CActiveForm', 
              array("id"=>'userform',
              'enableClientValidation'=>true,
              'clientOptions'=>array(
                'validateOnSubmit'=>true,
              ),
              "htmlOptions"=>array(
                  "class"=>"form-horizontal",
                  "enctype"=>"multipart/form-data")
            )); ?>
              <div class="control-group">
                <label class="control-label">描述:</label>
                <div class="controls">
                  <textarea rows="3" name="description" class="span5"><?php echo $description ?></textarea>
                </div>
              </div>
              <div class="control-group">
                <label class="control-label">关键词:</label>
                <div class="controls">
                  <textarea rows="3" name="Keywords" class="span5"><?php echo $Keywords ?></textarea>
                </div>
              </div>
               <div class="form-actions">
            <button type="submit" class="btn blue"> <i class="icon-ok"></i>
              确定
            </button>
          </div>
               <?php $this->endWidget(); ?>
          </div>
         
          
        </div>
      </div>
    </div>
  </div>
</div>